<link rel="stylesheet" href="public/static/ztree/css/zTreeStyle/zTreeStyle.css">
											<div class="zcate_treeBackground left">
												<ul id="cate_tree" class="ztree"></ul>
											</div>
	<script type="text/javascript" src="public/static/ztree/js/jquery.ztree.all-3.5.min.js"></script>
	<script type="text/javascript"
		src="public/static/ztree/js/jquery.ztree.excheck-3.5.js"></script>
	<script type="text/javascript"
		src="public/static/ztree/js/jquery.ztree.exedit-3.5.js"></script>
	<SCRIPT type="text/javascript">
		var ztreeObj;
		var setting = {
			data: {
				key:{
    				name:'text'
    			},
				simpleData: {
					enable: true,
					idKey:'id',
					pIdKey:'pid'
				}
			},
			callback: {
				onClick: zTreeOnClick
			}
		};
		
		var zNodes=${cate_tree};
		var timer;
		
		/****点击事件***/
		function zTreeOnClick(event, treeId, treeNode) {
			//查询节点内容
			//延迟触发，防止连续点击造成资源浪费
			if(timer)clearTimeout(timer);
			timer=setTimeout(function(){
				//筛选
				document.getElementById("mainFrame").src="admin/content/frame?category="+treeNode.id;
			},300);
		}
		
		$(document).ready(function(){
			ztreeObj=$ .fn.zTree.init($("#cate_tree"), setting, zNodes);
			ztreeObj.expandAll(true);
        });
	</SCRIPT>
